//
//  EDJObjectData.h
//  edaijia
//
//  Created by 金 星 on 15/4/7.
//
//

#import <Foundation/Foundation.h>

@interface EDJObjectData : NSObject

//通过对象返回一个NSDictionary，键是属性名称，值是属性值。

+(NSDictionary*)getObjectData:(id)obj;

//将getObjectData方法返回的NSDictionary转化成JSON

+(NSData*)getJSON:(id)obj options:(NSJSONWritingOptions)options error:(NSError**)error;

//直接通过NSLog输出getObjectData方法返回的NSDictionary

+(void)print:(id)obj;

+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;

+(NSString *) jsonStringWithObject:(id)object;

@end
